package com.lam.common.validate.model;

public enum ValidOperType {
	
	/** 新增操作 */
	ADD("add"),
	
	/** 修改操作 */
	UPDATE("update");
	
	private String operType;

	private ValidOperType(String operType) {
		this.operType = operType;
	}
	
	public static ValidOperType valueFrom(String operType) {
		for (ValidOperType v : values()) {
			if(v.operType.equals(operType)) {
				return v;
			}
		}
		return null;
	}

	public String getOperType() {
		return operType;
	}

}
